package com.sunjob.mrologdb.service;

import com.sunjob.common.domain.system.SysExecLog;
import com.sunjob.mrologdb.mapper.SysExecLogMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-08-08 10:25
 */
@Service
public class ExecLogServiceImpl implements ExecLogService {
    @Autowired
    SysExecLogMapper sysExecLogMapper;

    @Override
    public List<SysExecLog> queryAllExecLog() {
        return sysExecLogMapper.queryAllExecLog();
    }

    @Override
    public SysExecLog queryExecLogById(Long logId) {
        return sysExecLogMapper.queryExecLogById(logId);
    }

    @Override
    public List<SysExecLog> queryExecLogBy(SysExecLog sysExecLog) {
        return sysExecLogMapper.queryExecLogBy(sysExecLog);
    }

    @Override
    public Integer delExecLogById(Long logId) {
        return sysExecLogMapper.delExecLogById(logId);
    }
}
